package com.asimasoft.cncRouter.preview.handler;

import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.ui.handlers.HandlerUtil;

import controles.interfaz.EditorVistaPre;

public class ZoomFitHandler extends AbstractHandler {

	public Object execute(ExecutionEvent event) throws ExecutionException {
		EditorVistaPre editor = (EditorVistaPre) HandlerUtil.getActiveEditorChecked(event);
		editor.zoomFit();
		return null;
	}
}
